home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 2 / Amiga Tools 2.iso / grafik / bildanzeiger / jpegaga / doc / ppm2aga.doc < prev    next >
Text File  |  1995-03-09  |  12KB  |  355 lines

  1.  
  2.                          ppm2AGA 1.4 by Günther Röhrich
  3.                          ******************************
  4.  
  5. ATTENTION: At the end of this file you will find my correct EMAIL-address.
  6. (The address from the 1.0 - release is wrong) 
  7.  
  8. ppm2AGA ist a program for converting the ppm, pgm and pbm picture format into
  9. the IFF-ILBM format. For owners of an AGA-Amiga it is now possible to create
  10. high quality pictures without having to pay much money for a commercial image
  11. processing software. Together with the NETPBM-package it is possible to convert
  12. every other picture format and to do some basic image processing.
  13.  
  14. The advantages of ppm2AGA:
  15. - very high quality in the HAM8-mode
  16.   (better than some commercial programs)
  17. - processing pictures that are larger than the available memory is possible
  18. - saving to the Clipboard is possible
  19. - colormaps with full 24 Bit color precision are supported
  20. - the source is available
  21. - runs on all Amiga's  (even with KS 1.2/1.3 if iffparse.library V37 is
  22.   available)
  23.  
  24.  
  25. This program is Freeware with the following restrictions:
  26.  
  27. Some parts of the program are taken from the NETPBM-package and are therefore
  28. Copyright (C) 1989, 1991 by Jef Poskanzer. These parts are heavily modified.
  29.  
  30. This is allowed by the original author as you can read in the following text
  31. written by him:
  32.  
  33. Permission to use, copy, modify, and distribute this software and its
  34. documentation for any purpose and without fee is hereby granted, provided
  35. that the above copyright notice appear in all copies and that both that
  36. copyright notice and this permission notice appear in supporting
  37. documentation.  This software is provided "as is" without express or
  38. implied warranty.
  39.  
  40. If you modify or redistribute ppm2AGA you have to take care of this
  41. permission notice. The files in the directory "Developer" are written
  42. completely by me and they are therefore not covered by the copyright notice.
  43. You can do what you want with them.
  44.  
  45.  
  46. I have to thank the following persons:
  47.  
  48. Jef Poskanzer (jef@well.sf.ca.us):
  49.  for the development of the ppm-format and the pbm-software
  50.  
  51. Ingo Wilken (Ingo.Wilken@informatik.uni-oldenburg.de):
  52.  for the Amiga-specific parts of NETPBM and for ppmtoilbm.c
  53.  
  54. Johan Widen (jw@jwdata.se):
  55.  for the chunky->planar conversion routine in ppmtoilbm.c
  56.  
  57. Paul Heckbert:
  58.  the color quantizing routine in ppmquant.c is based on his article in
  59.  "SIGGRAPH '82 Proceedings", p. 297
  60.  
  61. The Independent JPEG Group (jpeg-info@uunet.uu.net):
  62.  for the source for decoding/encoding the JPEG-format
  63.  
  64. ***********************************************************************
  65.  
  66. I have created two versions of the program:
  67.  
  68. ppm2AGA.000 for 68000 and 68010 processors, it runs on all others too
  69. ppm2AGA.020 for 68020 or higher processors
  70.  
  71. I don't know if the 68000-version works because I don't have a 68000-based
  72. Amiga to test it. As operating system you will need OS 1.3 or higher.
  73. (With OS 1.3 you will need iffparse.library V37 which is available on the
  74. Workbench 2.0 disk.)
  75.  
  76. NOTE: Newer versions of ixemul.library (40.xx) don't work any more with
  77. Kickstart 1.2/1.3.
  78.  
  79.  
  80.  
  81. Invoking ppm2AGA:
  82.  
  83.   ppm2AGA inputfile outputfile options
  84.  
  85.  
  86. inputfile
  87. *********
  88.  
  89. The name of the file that should be read. Supported picture formats are:
  90. PPM - color, 24 bit/pixel (16Meg colors)
  91. PGM - greyscale, 8 bit/pixel (256 greyscales)
  92. PBM - black/white, 1 bit/pixel
  93. Both binary and ASCII formats are accepted. More informations can be found
  94. in the NETPBM-package.
  95.  
  96.  
  97. outputfile
  98. **********
  99.  
  100. This is the name of the IFF-ILBM file that should be created. If you use -cn
  101. as a name then the file will be written to the Clipboard with unit number n.
  102. (You should normally use unit number 0.)
  103.  
  104.  
  105. options
  106. *******
  107.  
  108. All options are case-insensitive. If they are not set then internal default
  109. values will be used.
  110.  
  111.  
  112. -HAM8 (default)
  113.  
  114. Use the HAM8 conversion method. This allows a total of 262144 different colors
  115. for the created picture.
  116.  
  117.  
  118. -HAM6
  119.  
  120. Use HAM6-mode. The quality is not very good (compared to other programs). The
  121. created picture may have max. 4096 colors.
  122. mode.
  123.  
  124.  
  125. -CMAPn
  126.  
  127. Use the colormap conversion method with n bitplanes. (max. 8) The created
  128. pictures will have max. 2^n colors out of about 16 millions.
  129. If you display the picture on an ECS/OCS machine with the original hardware 
  130. then the picture will not show the original colors because these machines only
  131. support a color selection out of 4096 colors.
  132. You can use the -FS option with this mode.
  133.  
  134.  
  135. -E
  136.  
  137. (Only for use in combination with the -CMAPn option.)
  138. Use this option when you know that the ppm-file has a limited number of colors.
  139. (less than 10000) This is for example the case when the ppm-file results from
  140. a colormapped picture format like GIF, BMP, etc.
  141. This option ensures that the original colors will be preserved. When converting
  142. the pgm-format this option will be set automatically because pgm-files have max.
  143. 256 greyscales.
  144.  
  145.  
  146. -FS
  147.  
  148. Use Floyd-Steinberg dithering. This may enhance the picture qualitiy.
  149. When used with the HAM8-mode the enhancement will not be that much.
  150.  
  151.  
  152. -Mx
  153.  
  154. Load pictures up to size x (in bytes) into memory. (default: 1000000)
  155.  
  156.  
  157. -2 
  158.  
  159. Use two-pass processing in the HAM6/HAM8 mode. This gives slightly better
  160. results. With digitized pictures you will not see any difference in most
  161. cases.
  162. (Version 1.0 of ppm2AGA always used two passes.)
  163.  
  164.  
  165. -D
  166.  
  167. Display the picture during processing. You need OS 3.0 or higher. If the
  168. screen cannot be opened processing will continue without display. To move
  169. the screen around with the mouse you have to activate it first. It also
  170. has a hidden drag bar and depth gadget. 
  171.  
  172.  
  173. -VGA
  174.  
  175. The picture will always use the VGA screenmode (also called 'multiscan').
  176. If your machine does not support this mode you will have problems showing
  177. the picture. Use this option when you know that the picture was intended for
  178. displaying on a PC or other machines with quadratic screen resolution.
  179.  
  180. NOTE: With 'quadratic' I don't mean that the screen has the same number of
  181. pixels in horizontal and vertical direction. (e.g. 1024x1024)
  182. I mean that a square composed of e.g. 100x100 pixels will be shown as a
  183. square on the screen. Because a usual picture tube has a ratio of 4 to 3
  184. the screen's resolution must be a multiple of that. (e.g. 640x480 because
  185.  
  186.  640   4
  187.  --- = - )
  188.  480   3
  189.  
  190.  
  191. -SMR
  192.  
  193. (New for version 1.4)
  194. When setting this option you can use a screen mode requester to choose the
  195. display mode. But you can choose only display modes that are available on your
  196. machine. You will also need Workbench 2.1 or higher.
  197. The options -HAM8, -HAM6, -CMAPx and -VGA will be ignored if they are set.
  198.  
  199.  
  200. -jpegAGA
  201.  
  202. Instead of an IFF-ILBM file a map-file for the program jpegAGA will be created.
  203. Normally, map-files are created by using a shell script. See the documentation
  204. to jpegAGA for more.
  205. New for version 1.4:
  206. If it is not possible to store the map-file in the specified place (for example
  207. if the storage media is full or write protected) then the map-file will be
  208. stored into the directory pointed to by the MAPDIR environment variable.
  209. jpegAGA 1.1 or higher will also search the map-file in that place.
  210.  
  211.  
  212. If you don't know what options to use to get the best quality make three
  213. conversions with the options: -HAM8 -FS, -CMAP8, -CMAP8 -FS and compare the
  214. results.
  215.  
  216. There is also a JPEG decompression program included. It converts JPEG
  217. pictures to the ppm format. To use it enter:
  218.  
  219.  djpeg inputfile outputfile
  220.  
  221. In some cases djpeg will try to store temporary files to JPEGTMP:, you
  222. have then to assign this directory to somewhere on your hard disk.
  223. (for example assign JPEGTMP: HD:T)
  224. For more informations read the included documentation.
  225.  
  226.  
  227. How the program works
  228. *********************
  229.  
  230. Not translated into English yet. Read the German documentation.
  231.  
  232.  
  233. Questions and answers
  234. *********************
  235.  
  236. Not translated into English yet. Read the German documentation. (:-)
  237.  
  238.  
  239.  
  240. History
  241. *******
  242.  
  243. 1.0 - 19-Apr-1994
  244.     
  245.     - first public release
  246.  
  247.  
  248. 1.1 - 5-May-1994
  249.  
  250.     - added -2 option
  251.     - one-pass processing is now the default in HAM6/HAM8 mode
  252.       (use the -2 option to get the same results as version 1.0)
  253.     - added -D option to display the picture during processing
  254.     - the documentation now contains my correct EMAIL-address
  255.  
  256.  
  257. 1.2 - 15-May-1994
  258.  
  259.     - autoscroll bug fixed (forgot to set the SA_Overscan Tagitem)
  260.     - added -VGA option
  261.  
  262.  
  263. 1.3 - 4-June-1994
  264.  
  265.     - added -jpegAGA option for creating map-files for the program jpegAGA
  266.  
  267.  
  268. 1.4 - 6-October-1994
  269.  
  270.     - added support for the MAPDIR environment variable to be conformant with
  271.       jpegAGA 1.1 or higher
  272.     - you can now use Floyd-Steinberg dithering in the HAM8-mode
  273.     - added -SMR option to let you choose the screenmode much better
  274.  
  275.  
  276.  
  277. Announcement
  278. ************
  279.  
  280. The actual version of this program does not offer very much. My spare time
  281. is very limited because I am now studying Electrical Engineering at the Uni-
  282. versity Stuttgart. Therefore I am searching for other developers to cooperate
  283. with me and beta-testers for testing purposes. If you want to join in then
  284. please contact me. I will then create a detailed description of the source.
  285.  
  286. To recompile the source you need the newiff package from Commodore.
  287. V37 is available on Fish-disk 705 and V39 on the "3.1 Amiga Developer Update"
  288. disks. (Or on Aminet and on the Fresh Fish CD-ROM's.)
  289. If you find a bug, a Mungwall/Enforcer hit, or if you have some suggestions
  290. for additional features then send me a message.
  291.  
  292. Future plans:
  293. - PhotoCD viewer/converter with the picture quality of jpegAGA/ppm2AGA
  294.   (This will probably done next because I have now a CD-ROM drive but no
  295.   PhotoCD viewer and I don't intend to buy one.)
  296.   This will be a free program too and I will also release the complete source.
  297.   If you are interested in such a program it would be very nice if you would
  298.   lend me some PhotoCD's for testing purposes. You will get them back together
  299.   with my viewer/converter as soon as it will be working. If you give them
  300.   to me as a present I will be even more happy. Your name will then be
  301.   mentioned in the documentation and I will also send you the program.
  302.  
  303. - graphical user interface
  304. - support for animations, especially converting MPEG to IFF-ANIM in HAM8 mode
  305.   (This will be done next if I got the time.)
  306. - support for other picture formats and basic image processing
  307.   (scaling, clipping, etc.)
  308. - ARexx-port
  309. - documentation in TeX-DVI and AmigaGuide format
  310. - complete (and correct) translation of the German documentation
  311. - fast ppm-viewer using the HAM8-mode with fixed colormap and doubled horizontal
  312.   resolution for higher quality, perhaps as datatype
  313.   (If you don't understand what I mean then send me a note)
  314. - using the colormap from other pictures instead of computing it
  315. - etc.
  316.  
  317.  
  318. All messages/gifts/PhotoCD's should be sent to the following addresses:
  319.  
  320.  
  321.   electronic mail:                                  normal mail:
  322.   ****************                                  ************
  323.  
  324.  Guenther@studbox.uni-stuttgart.de                  Günther Röhrich
  325.      (Internet EMAIL)                               Lerchenbergstr. 4
  326.                                                     73733 Esslingen
  327.                                                         Germany
  328.  
  329. NOTE: The EMAIL address from version 1.0 was wrong.
  330.  
  331. If you don't get an answer to a EMAIL within 3 weeks then try it again
  332. with normal mail.
  333.  
  334.  
  335. Here is how to get all the stuff I mentioned in the doc:
  336. ********************************************************
  337.  
  338. The NETPBM-package and the JPEG-source are available via FTP.
  339. (for example from ftp.uni-stuttgart.de)
  340.  
  341. NETPBM: ftp.uni-stuttgart.de in pub/systems/amiga/aminet/gfx/pbm
  342.         (or on all the other Aminet mirrors)
  343.         ftp.uni-oldenburg.de in ?
  344.  
  345. JPEG:   ftp.uu.net in graphics/jpeg
  346.         
  347.  
  348. If you have no other possibility you can get everything directly from me.
  349.  
  350. In the document "Info.Developer" you can read how to get other developer
  351. material, especially the "3.1 Amiga Developer Update".
  352.  
  353. NOTE: Commodore does not exist any more, I don't know if it is still possible
  354. to get developer materials. Try to contact the German company Hirsch & Wolf oHG.
  355.